<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="../vue.js"></script>
</head>

<body>
  <div id="app">
    <h1>{{msg}}</h1>
    <!-- 下拉 单选  单个字符串-->
    <select name="dog" v-model="likedog">
      <option value="小黑">小黑</option>
      <option value="小白">小白</option>
      <option value="小花">小花</option>
    </select>
    <!-- 下拉 多选 数组保存-->
    <select name="cat" multiple v-model="likecat">
      <option value="大佐">大佐</option>
      <option value="咪桑">咪桑</option>
      <option value="撒库拉">撒库拉</option>
    </select>
  </div>
  <script>
    Vue.config.productionTip = false;
    const vm = new Vue({
      el: "#app",
      data() {
        return {
          msg: "hello vue!",
          likedog: '',
          likecat: []
        }
      },
      methods: {}
    })
  </script>
</body>

</html>